/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package principal;

import br.com.una.accidentmanagement.bo.AreaController;
import br.com.una.accidentmanagement.model.Area;
import br.com.una.accidentmanagement.model.Service;
import br.com.una.accidentmanagement.util.JPAUtil;

/**
 *
 * @author Ulrik
 */
public class Principal {

    public static void main(String args[]) {
        AreaController ac = new AreaController();
        Area area = new Area();

        
        area.setId(Long.valueOf("1"));
        area.setName("Configuração de Ambiente");
        ac.createArea(area);

        Service servico = new Service();

        servico.setArea(area);
        servico.setDescription("desc serv 1");
        servico.setObjective("obj serv 1");
        servico.setSla("sla serv 1");
        servico.setSubject("assunto serv 1");
        
        ac.createService(servico);

    }
}
